package cn.moningxi.mapper;

import cn.moningxi.bean.OrderDetail;
import org.apache.ibatis.annotations.Param;

public interface OrderDetailMapper {

    OrderDetail queryBuOrderId(Long orderId);

    void addDetail(OrderDetail orderDetail);

    void updateCnt(@Param("orderDetail") OrderDetail orderDetail, @Param("cnt") Integer cnt);

    void deleteOrderById(Long orderId);

    void updateOrderCnt(@Param("orderId") Long orderId, @Param("amount") Integer amount);
}